package com.fare.taluo.core.domain.config.line;

import java.util.List;

import com.dayatang.domain.EntityRepository;
import com.fare.taluo.vo.core.FreightPublishVO;

public interface FreightPublishEntityRepository extends EntityRepository {
	/**
	 * 查找所有公布运价
	 * @return
	 */
	public List<FreightPublishEntity> findAll();
    
	/**
	 * 删除一个公布运价
	 * @param id
	 */
	public void remove(FreightPublishEntity entity);
    
	/**
	 * 保存或更新一个公布运价
	 * @param vo
	 */
	public void saveOrUpdate(FreightPublishEntity entity);
	
	/**
	 * 实现分页
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public List<FreightPublishEntity> findFreightPublishByCondition(int pageNum, int pageSize);
	
	public FreightPublishEntity findByLine(String fromCity,String toCity);
    
}
